package com.ruoyi.project.gxgw_modules.lost.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.gxgw_modules.lost.mapper.LostMapper;
import com.ruoyi.project.gxgw_modules.lost.domain.Lost;
import com.ruoyi.project.gxgw_modules.lost.service.ILostService;
import com.ruoyi.common.support.Convert;

/**
 * 寻宠启示记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-22
 */
@Service
public class LostServiceImpl implements ILostService 
{
	@Autowired
	private LostMapper lostMapper;

	/**
     * 查询寻宠启示记录信息
     * 
     * @param lostId 寻宠启示记录ID
     * @return 寻宠启示记录信息
     */
    @Override
	public Lost selectLostById(Integer lostId)
	{
	    return lostMapper.selectLostById(lostId);
	}
	
	/**
     * 查询寻宠启示记录列表
     * 
     * @param lost 寻宠启示记录信息
     * @return 寻宠启示记录集合
     */
	@Override
	public List<Lost> selectLostList(Lost lost)
	{
	    return lostMapper.selectLostList(lost);
	}
	
    /**
     * 新增寻宠启示记录
     * 
     * @param lost 寻宠启示记录信息
     * @return 结果
     */
	@Override
	public int insertLost(Lost lost)
	{
	    return lostMapper.insertLost(lost);
	}
	
	/**
     * 修改寻宠启示记录
     * 
     * @param lost 寻宠启示记录信息
     * @return 结果
     */
	@Override
	public int updateLost(Lost lost)
	{
	    return lostMapper.updateLost(lost);
	}

	/**
     * 删除寻宠启示记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteLostByIds(String ids)
	{
		return lostMapper.deleteLostByIds(Convert.toStrArray(ids));
	}
	
}
